#include <stdio.h>
void exchange(int* arr1,int* arr2)
{
	int i = 5;
	for (i = 5; i >= 0; i--)
	{
		int p = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = p;
	}	
}
int main()
{
	int arr1[] = { 1,2,3,4,5,6 };
	int arr2[] = { 6,5,4,3,2,1 };
	exchange(arr1, arr2);
	int i = 0;
	for (i = 0; i <= 5; i++)
	{
		printf("arr1:%d\n", arr1[i]);
	}
	printf("\n");
	int j = 0;
	for(j=0;j<=5;j++)
	{
		printf("arr2:%d\n", arr2[j]);
	}
	return 0;
}